﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;

namespace HiUpdateTools.Client.Wpf
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public static string[] Args { get; set; }

        protected override void OnStartup(StartupEventArgs e)
        {
            if (e.Args != null)
                Args = e.Args;
            else
                Args = new string[0];
            AppMutex = new Mutex(false, @"Global\" + appGuid);
            
            base.OnStartup(e);
        }
        private static string appGuid = "c0a76b5a-12ab-45c5-b9d9-d693faa6e7b9";



        public static Mutex AppMutex { get; set; }
    }
}
